import request from "@/utils/request";
// 获取单元列表
export function getUnit(id, params) {
  return request({
    url: `/unit/list/${id}`,
    params
  });
}
export function getUnitDetail(id) {
  return request({
    url: `/unit/info/${id}`
  });
}

// 获取项目详情的评论
export function getComment(id) {
  return request({
    url: `/comment/list/unit/${id}`
  });
}

// 获取项目详情的评论
export function getResource(id) {
  return request({
    url: `/unit/info/resource/${id}`
  });
}
